package demo.cfg;

import io.micrometer.core.instrument.Counter;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

@Component
public class CustomHealthCheck implements HealthIndicator {
    @Override
    public Health health() {

        // 检查逻辑...
        return Health.up().withDetail("custom", "OK").build();
    }
}
